<div id="tiga_ba">
	<div id="tiga_baa">Ubah Data Jenis PPK</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
            
<?php
	$id=$_GET['id'];
	$sql="select * from jenis_ppk where id_jenis = $id";
	$qry=mysql_query($sql);
	$hasil=mysql_fetch_array($qry);
?>
<form action="utama.php?module=mod_jppk&act=update" onsubmit="return gsValidate('nama','Jenis PPK Harus Diisi','required');" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Jenis PPK</td>
			<td>&nbsp;</td>
			<td>
				<input name="nama" type="text" class="input2" id="nama" maxlength="50" value="<?php echo $hasil['jenis']?>"/>
				<input name="id" type="hidden" id="id" value="<?php echo $hasil['id_jenis']?>" />
				<span class="red">*</span>
			</td>
		</tr>
		<tr>
			<td>Pola Tarif</td>
			<td>&nbsp;</td>
			<td>
				<select name="tarif" class="input2">
					<?php
						$pola = mysql_query("select * from pola_tarif");
						while ($p = mysql_fetch_array($pola)){
							if($hasil['id_pola'] == $p['id_pola']){
								$s = "selected";
							}else{
								$s = "";
							}
							echo "<option value=$p[id_pola] $s>$p[pola_tarif]</option>";
						}
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td valign="top">Keterangan</td>
			<td>&nbsp;</td>
			<td>
				<textarea name="keterangan" class="area"><?php echo $hasil['keterangan']?></textarea>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Ubah" /></td>
		</tr>
	</table>
</form>		
            
        